package com.WaVel.mapper;

import com.Emplyment.dto.UserRegisterDto;
import com.Emplyment.entity.UserRegister;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EmplyeeMapper {

    @Insert("insert into user (username, password, create_time) VALUES " + "(#{username},#{password},#{createTime})")
    void InsterUser(UserRegister userRegister);

    @Select("select id,username,password from user where username = #{username}")
    UserRegister selectEmplyemnt(String username);


}
